package com.pangus.ipc.util;

import org.jsoup.Connection;

import java.util.Map;
import java.util.Set;

public class JsoupUtils {

    public static void setCookies(Connection connection, Map<String,String> map){
        Set<Map.Entry<String, String>> entries = map.entrySet();
        for (Map.Entry<String,String> entry:entries) {
                connection.cookie(entry.getKey(),entry.getValue());
        }
    }
}
